<?php

namespace Frieza\Modules\Activity\Actions;

use Doraemon\cache\PositionModule\ApiCounter;
use Encore\Admin\Actions\RowAction;

class ClearFeaturesCache extends RowAction
{
    public $name = '清除[新品打call用户]缓存';

    public function dialog()
    {
        $this->confirm('确定删除[新品打call用户]缓存');
    }

    public function getHandleRoute()
    {
        $parameters = [
            'id' => $this->getRow()->id,
            'action' => 'features',
        ];
        return admin_url('/activity/Spotlight/clear', $parameters);
    }
}